package com.qidian.tcba.dao;



import com.qidian.tcba.admin.model.entity.District;
import com.qidian.tcba.admin.model.entity.UserDistrict;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
@Mapper
public interface UserDistrictMapper {
    int deleteByPrimaryKey(int id);

    int insert(UserDistrict record);

    UserDistrict selectByPrimaryKey(int id);

    List<UserDistrict> selectAll();

    int updateByPrimaryKey(UserDistrict record);

    List<District> getUserDistrictList(int userId);

    int deleteByDistrictIds(int userId,List<Integer> districtIds);

    int deleteByUserId(int userId);

    int insertUserDistrictList(@Param("userId") int userId, List<Integer> districtIds);
}